package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type IndexReq struct {
	g.Meta `path:"/login/index" method:"get" sm:"登陆" tags:"用户"`
}

type IndexRes struct {
	g.Meta `mine:"text/html" exapmle:"string"`
}

type LoginReq struct {
	g.Meta  `path:"/login/login" method:"post" sm:"注册" tags:"用户"`
	Captcha string `json:"captcha" v:"required" dc:"验证码"`
}

type LoginRes struct {
	Url string `json:"url" dc:"跳转链接"`
}

type OutReq struct {
	g.Meta `path:"/login/out" method:"get" sm:"退出" tags:"用户"`
}

type OutRes struct {
	g.Meta `mime:"text/html" example:"string"`
}

type YzmReq struct {
	g.Meta `path:"/login/yzm" method:"post" sm:"验证码" tags:"用户"`
}

type YzmRes struct {
	g.Meta `mime:"text/html" example:"string"`
}
